package com.hzp.micromall.content.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 专题表
 * </p>
 *
 * @author houzipeng
 * @since 2022-03-08 10:15:14
 */
@Getter
@Setter
@TableName("cms_subject")
@ApiModel(value = "Subject对象", description = "专题表")
public class Subject {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("专题分类id")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty("专题标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("专题主图")
    @TableField("pic")
    private String pic;

    @ApiModelProperty("关联产品数量")
    @TableField("product_count")
    private Integer productCount;

    @ApiModelProperty("推荐状态[0:未推荐 1:推荐]")
    @TableField("recommend_status")
    private Integer recommendStatus;

    @ApiModelProperty("收藏数量")
    @TableField("collect_count")
    private Integer collectCount;

    @ApiModelProperty("已读数量")
    @TableField("read_count")
    private Integer readCount;

    @ApiModelProperty("评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty("专题图片，用逗号分割")
    @TableField("img_urls")
    private String imgUrls;

    @ApiModelProperty("显示状态：0->不显示；1->显示")
    @TableField("show_status")
    private Integer showStatus;

    @TableField("description")
    private String description;

    @ApiModelProperty("专题内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("专题分类名称")
    @TableField("category_name")
    private String categoryName;

    @ApiModelProperty("是否删除（0：未删除 1：已删除）")
    @TableField("isDel")
    @TableLogic
    private Integer isDel;


}
